<?php
    include("handle/config.php");
	session_start();
	ob_start();
?>
<title>Chi hội</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="imagetoolbar" content="no" />
<link rel="stylesheet" href="styles/layout.css" type="text/css" />
<script type="text/javascript" src="js template/jquery-1.11.0.js"></script>
<script type="text/javascript" src="scripts/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="scripts/jquery.timers.1.2.js"></script>
<script type="text/javascript" src="scripts/jquery.galleryview.2.1.1.min.js"></script>
<script type="text/javascript" src="scripts/jquery.galleryview.setup.js"></script>
<script type="text/javascript" src="scripts/jquery.galleryview-3.0-dev.js"></script>
<link type="text/css" rel="stylesheet" href="styles/jquery.galleryview-3.0-dev.css" />

<script type="text/javascript" src="script sources/KhoAnhChiHoi.js"></script>

	<?php
		switch($_GET['content'])
		{
			case "khoalbum": echo '<script type="text/javascript" src="js template/jquery-1.11.0.js"></script>'; break;
			///lấy mã chi hội từ trang chủ của chi hội
			case "trangchuchihoi":
					$sql = "SELECT *  FROM CHIHOI WHERE TENCH='$_GET[tenchihoi]'";
					$result=mysqli_query($con,$sql);
					$row = mysqli_fetch_array($result);
					$_SESSION['matructhuoc']=$row['MACH']; break;
		}
	?>

<script>
	var maalbum=<?php echo json_encode($_GET['maalbum']);?>;
	var mach=<?php echo json_encode($_GET['mach']);?>;
	var offset=0;
	var offset_anh=0;
	<?php
	
	switch($_GET['content'])
			{
				case "khoalbum": echo "loadAlbum();"; break;
				case "xemalbum": echo " loadAnh();"; break;
			}
	?>
</script>
		
<!-- custom link -->

<link href="css template/fotorama.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="js template/fotorama.js"></script>

<link rel="stylesheet" href="styles/custom.css" type="text/css" />
<link type="text/css" href="css template/bootstrap.css" rel="stylesheet"/>
<link rel="stylesheet" href="style sources/KhoAnh.css" type="text/css" />

</head>
<body id="top">
<!-- ####################################################################################################### -->
<!--#include virtual=".html" -->
	<?php include("html sources/quan ly chi hoi/header.html"); ?>
	<?php include("php sources/TinTucSuKien.php");?>
<!-- ####################################################################################################### -->
	<div class="body">
			<div class='wrapper'>
				<div class='container'>
					<?php 
					switch($_GET['content'])
					{
						case "trangchuchihoi": include("html sources/quan ly chi hoi/TrangChuChiHoi.html"); break; 
						case "khoalbum": include("html sources/kho anh chi hoi/khoalbum.html"); break;
						case "xemalbum": include("html sources/kho anh chi hoi/AlbumAnh.html"); break;
						case "xemtin": include("html sources/tin tuc chi hoi/XemTinTucSuKien.html"); break;
						
					}
				?>
			</div>
			</div>
	</div>
	<!-- ####################################################################################################### -->
	<div class="wrapper col8">
	  <div id="copyright">
		<p class="fl_left">Hội Sinh Viên Trường Đại học Cần Thơ</p>
		<p class="fl_right"> Coppyright by Mai Hữu Lợi &copy; 2014 - Mọi thắc mắc liên hệ facebook:<a href='https://www.facebook.com/loi.huu.75'>Kenvin Mai</a></p>
		<br class="clear" />
	  </div>
	</div>
</body>
</html>
